package com.yanu.t2s.service.Impl;

import com.yanu.t2s.entity.Yangzhi;
import com.yanu.t2s.mapper.YangZhiMapper;
import com.yanu.t2s.service.YangzhiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YangzhiServiceImpl implements YangzhiService{
    @Autowired
    YangZhiMapper yangZhiMapper;


    @Override
    public Yangzhi findByIdYangzhi(int id_yangzhi) {
        return yangZhiMapper.findByIdYangzhi(id_yangzhi);
    }

    @Override
    public List<Yangzhi> findAllYangzhi() {
        return yangZhiMapper.findAllYangzhi();
    }
}
